<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><!-- 使用c:标签需要添加本行代码 -->
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>编辑信息页面</title>
<link href="css/content.css" type="text/css" rel="stylesheet" />
<link href="css/table.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<form
		action="<%=path%>/ActionServlet?method=update&entity=${entity}&entityId=${entityId}"
		method="post">
		<c:if test="${entity=='Teacher'}">
			教师编号：<input type="text" readonly="readonly" name="userId" value="${entityId}" /><br>
			教师姓名：<input type="text" name="userName" value="${userName}"><br>
			登陆密码：<input type="text" name="password" value="${password}"><br>
		</c:if>
		<c:if test="${entity=='Student'}">
			学生学号：<input type="text" readonly="readonly" name="userId" value="${entityId}"/><br>
			学生姓名：<input type="text" name="userName" value="${userName}"/><br>
			登陆密码：<input type="text" name="password" value="${password}"/><br>
			学生性别：<input type="text" name="studentSex" value="${studentSex}"/><br>
		</c:if>
			<c:if test="${entity=='ClassOpen'}">
			开课序号：<input type="text" name="classOpenId" readonly="readonly" value="${classOpenId}"/><br>
			学生学号：<input type="text" name="studentId" value="${studentId}"/><br>
			教师编号：<input type="text" name="teacherId" value="${teacherId}"/><br>
			班级编号：<input type="text" name="classId" value="${classId}"/><br>
			课程编号：<input type="text" name="courseId" value="${courseId}"/><br>
		</c:if>
		<c:if test="${entity=='Class'}">
			班级编号：<input type="text" readonly="readonly" name="userId" value="${entityId}" /><br>
			班级名称：<input type="text" name="userName" value="${userName}"><br>
		</c:if>
		<c:if test="${entity=='Course'}">
			课程编号：<input type="text" readonly="readonly" name="userId" value="${entityId}" /><br>
			课程名称：<input type="text" name="userName" value="${userName}"><br>
		</c:if>
		<input type="submit" value="确认修改">
	</form>
</body>
</html>